package com.example.thegreatwall.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.math.BigDecimal;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "refund_application")
public class RefundApplication {
    @TableId(value = "application_id", type = IdType.INPUT)
    private Long applicationId;

    @TableField(value = "apply_time")
    private Date applyTime;

    /**
     * 0=待处理，1=已退款，2=已拒绝
     */
    @TableField(value = "`status`")
    private Byte status;

    /**
     * 原因
     */
    @TableField(value = "reason_text")
    private String reasonText;

    /**
     * 描述
     */
    @TableField(value = "description")
    private String description;

    /**
     * 图片
     */
    @TableField(value = "image_urls")
    private String imageUrls;

    /**
     * 关联订单编号
     */
    @TableField(value = "order_id")
    private String orderId;

    /**
     * 实际退款金额
     */
    @TableField(value = "refund_amount")
    private BigDecimal refundAmount;

    /**
     * 处理人
     */
    @TableField(value = "operator_name")
    private String operatorName;

    /**
     * 处理时间
     */
    @TableField(value = "operate_time")
    private Date operateTime;

    /**
     * 处理备注
     */
    @TableField(value = "remark")
    private String remark;
}